package com.kkb.pojo;

import java.io.Serializable;
import java.util.Date;

public class TbAuthority implements Serializable {
    private Integer authorityId;

    private String authorityName;

    private String code;

    private String authorityDescription;

    private String url;

    private Integer type;

    private Integer authorityPriority;

    private Integer parentId;

    private String isDelete;

    private String isItem;

    private String createId;

    private String updateId;

    private Date createTime;

    private Date updateTime;

    private Integer sort;

    private String bak1;

    private String bak2;

    private String bak3;

    private static final long serialVersionUID = 1L;

    public TbAuthority(Integer authorityId, String authorityName, String code, String authorityDescription, String url, Integer type, Integer authorityPriority, Integer parentId, String isDelete, String isItem, String createId, String updateId, Date createTime, Date updateTime, Integer sort, String bak1, String bak2, String bak3) {
        this.authorityId = authorityId;
        this.authorityName = authorityName;
        this.code = code;
        this.authorityDescription = authorityDescription;
        this.url = url;
        this.type = type;
        this.authorityPriority = authorityPriority;
        this.parentId = parentId;
        this.isDelete = isDelete;
        this.isItem = isItem;
        this.createId = createId;
        this.updateId = updateId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.sort = sort;
        this.bak1 = bak1;
        this.bak2 = bak2;
        this.bak3 = bak3;
    }

    public TbAuthority() {
        super();
    }

    public Integer getAuthorityId() {
        return authorityId;
    }

    public void setAuthorityId(Integer authorityId) {
        this.authorityId = authorityId;
    }

    public String getAuthorityName() {
        return authorityName;
    }

    public void setAuthorityName(String authorityName) {
        this.authorityName = authorityName == null ? null : authorityName.trim();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getAuthorityDescription() {
        return authorityDescription;
    }

    public void setAuthorityDescription(String authorityDescription) {
        this.authorityDescription = authorityDescription == null ? null : authorityDescription.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getAuthorityPriority() {
        return authorityPriority;
    }

    public void setAuthorityPriority(Integer authorityPriority) {
        this.authorityPriority = authorityPriority;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    public String getIsItem() {
        return isItem;
    }

    public void setIsItem(String isItem) {
        this.isItem = isItem == null ? null : isItem.trim();
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId == null ? null : createId.trim();
    }

    public String getUpdateId() {
        return updateId;
    }

    public void setUpdateId(String updateId) {
        this.updateId = updateId == null ? null : updateId.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getBak1() {
        return bak1;
    }

    public void setBak1(String bak1) {
        this.bak1 = bak1 == null ? null : bak1.trim();
    }

    public String getBak2() {
        return bak2;
    }

    public void setBak2(String bak2) {
        this.bak2 = bak2 == null ? null : bak2.trim();
    }

    public String getBak3() {
        return bak3;
    }

    public void setBak3(String bak3) {
        this.bak3 = bak3 == null ? null : bak3.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", authorityId=").append(authorityId);
        sb.append(", authorityName=").append(authorityName);
        sb.append(", code=").append(code);
        sb.append(", authorityDescription=").append(authorityDescription);
        sb.append(", url=").append(url);
        sb.append(", type=").append(type);
        sb.append(", authorityPriority=").append(authorityPriority);
        sb.append(", parentId=").append(parentId);
        sb.append(", isDelete=").append(isDelete);
        sb.append(", isItem=").append(isItem);
        sb.append(", createId=").append(createId);
        sb.append(", updateId=").append(updateId);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", sort=").append(sort);
        sb.append(", bak1=").append(bak1);
        sb.append(", bak2=").append(bak2);
        sb.append(", bak3=").append(bak3);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}